package com.fysports.framework.log;

import org.apache.log4j.Layout;
import org.apache.log4j.WriterAppender;

import java.io.Writer;


/**
 * log4j输出处理类
 *
 * @author 董华健
 */
public class Log4jAppender extends WriterAppender {

    private Writer writer = new Log4jAsyncWriter();


    public Log4jAppender() {
        setWriter(writer);
    }


    public Log4jAppender(Layout layout) {
        this();
        super.layout = layout;
    }

}
